import axios from "axios"

// const baseUrl = (DEV ? "/" : "http://localhost:8081")

export function fetchItem(id) {
    return axios.get(`http://localhost:8081/api/items/${id}`)
}

export function fetchItems() {
    return axios.get(`http://localhost:8081/api/items`)
}

export function addItem(item) {
    return axios.post(`http://localhost:8081/api/items`, item)
}